gdk: Implement motion history as motion event data
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 31 Oct 2017 11:37:50 +0000 (12:37 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 14 Dec 2017 00:05:48 +0000 (01:05 +0100)
commitea216accd7b136a5537e567fce7a165cb41cf9c0
treed7846b1485765034ed37b830c27a202eda5a06d1
parenta040ed55ccefa7c749d668025963082848c6148c
gdk: Implement motion history as motion event data

In the motion compression phase the coalesced events will be saved
as a GdkTimeCoord on the motion event that shall be delivered.

For simplicity (and because history doesn't make much sense otherwise)
event history is only recorded while there are buttons pressed, this
also tidily ensures that those coalesced events would have the same
target widget on the gtk side than the delivered one, because of
implicit grabs.
gdk/gdkevents.c
gdk/gdkevents.h
gdk/gdkeventsprivate.h